package org.icnmasjid.member.model;
// Generated Dec 6, 2008 9:23:46 PM by Hibernate Tools 3.1.0.beta4



/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="address"
 *     
 */

public class Address extends org.icnmasjid.member.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer addId;
    private String addType;
    private String addAddress1;
    private String addAddress2;
    private String addCity;
    private String addState;
    private String addZip;
    private String addCounty;


    // Constructors

    /** default constructor */
    public Address() {
    }

    
    /** full constructor */
    public Address(String addType, String addAddress1, String addAddress2, String addCity, String addState, String addZip, String addCounty) {
        this.addType = addType;
        this.addAddress1 = addAddress1;
        this.addAddress2 = addAddress2;
        this.addCity = addCity;
        this.addState = addState;
        this.addZip = addZip;
        this.addCounty = addCounty;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="add_id"
     *         
     */

    public Integer getAddId() {
        return this.addId;
    }
    
    public void setAddId(Integer addId) {
        this.addId = addId;
    }
    /**       
     *      *            @hibernate.property
     *             column="add_type"
     *             length="100"
     *         
     */

    public String getAddType() {
        return this.addType;
    }
    
    public void setAddType(String addType) {
        this.addType = addType;
    }
    /**       
     *      *            @hibernate.property
     *             column="add_address1"
     *             length="100"
     *         
     */

    public String getAddAddress1() {
        return this.addAddress1;
    }
    
    public void setAddAddress1(String addAddress1) {
        this.addAddress1 = addAddress1;
    }
    /**       
     *      *            @hibernate.property
     *             column="add_address2"
     *             length="100"
     *         
     */

    public String getAddAddress2() {
        return this.addAddress2;
    }
    
    public void setAddAddress2(String addAddress2) {
        this.addAddress2 = addAddress2;
    }
    /**       
     *      *            @hibernate.property
     *             column="add_city"
     *             length="100"
     *         
     */

    public String getAddCity() {
        return this.addCity;
    }
    
    public void setAddCity(String addCity) {
        this.addCity = addCity;
    }
    /**       
     *      *            @hibernate.property
     *             column="add_state"
     *             length="100"
     *         
     */

    public String getAddState() {
        return this.addState;
    }
    
    public void setAddState(String addState) {
        this.addState = addState;
    }
    /**       
     *      *            @hibernate.property
     *             column="add_zip"
     *             length="100"
     *         
     */

    public String getAddZip() {
        return this.addZip;
    }
    
    public void setAddZip(String addZip) {
        this.addZip = addZip;
    }
    /**       
     *      *            @hibernate.property
     *             column="add_county"
     *             length="100"
     *         
     */

    public String getAddCounty() {
        return this.addCounty;
    }
    
    public void setAddCounty(String addCounty) {
        this.addCounty = addCounty;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("addType").append("='").append(getAddType()).append("' ");			
      buffer.append("addAddress1").append("='").append(getAddAddress1()).append("' ");			
      buffer.append("addAddress2").append("='").append(getAddAddress2()).append("' ");			
      buffer.append("addCity").append("='").append(getAddCity()).append("' ");			
      buffer.append("addState").append("='").append(getAddState()).append("' ");			
      buffer.append("addZip").append("='").append(getAddZip()).append("' ");			
      buffer.append("addCounty").append("='").append(getAddCounty()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof Address) ) return false;
		 Address castOther = ( Address ) other; 
         
		 return ( (this.getAddId()==castOther.getAddId()) || ( this.getAddId()!=null && castOther.getAddId()!=null && this.getAddId().equals(castOther.getAddId()) ) )
 && ( (this.getAddType()==castOther.getAddType()) || ( this.getAddType()!=null && castOther.getAddType()!=null && this.getAddType().equals(castOther.getAddType()) ) )
 && ( (this.getAddAddress1()==castOther.getAddAddress1()) || ( this.getAddAddress1()!=null && castOther.getAddAddress1()!=null && this.getAddAddress1().equals(castOther.getAddAddress1()) ) )
 && ( (this.getAddAddress2()==castOther.getAddAddress2()) || ( this.getAddAddress2()!=null && castOther.getAddAddress2()!=null && this.getAddAddress2().equals(castOther.getAddAddress2()) ) )
 && ( (this.getAddCity()==castOther.getAddCity()) || ( this.getAddCity()!=null && castOther.getAddCity()!=null && this.getAddCity().equals(castOther.getAddCity()) ) )
 && ( (this.getAddState()==castOther.getAddState()) || ( this.getAddState()!=null && castOther.getAddState()!=null && this.getAddState().equals(castOther.getAddState()) ) )
 && ( (this.getAddZip()==castOther.getAddZip()) || ( this.getAddZip()!=null && castOther.getAddZip()!=null && this.getAddZip().equals(castOther.getAddZip()) ) )
 && ( (this.getAddCounty()==castOther.getAddCounty()) || ( this.getAddCounty()!=null && castOther.getAddCounty()!=null && this.getAddCounty().equals(castOther.getAddCounty()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getAddId() == null ? 0 : this.getAddId().hashCode() );
         result = 37 * result + ( getAddType() == null ? 0 : this.getAddType().hashCode() );
         result = 37 * result + ( getAddAddress1() == null ? 0 : this.getAddAddress1().hashCode() );
         result = 37 * result + ( getAddAddress2() == null ? 0 : this.getAddAddress2().hashCode() );
         result = 37 * result + ( getAddCity() == null ? 0 : this.getAddCity().hashCode() );
         result = 37 * result + ( getAddState() == null ? 0 : this.getAddState().hashCode() );
         result = 37 * result + ( getAddZip() == null ? 0 : this.getAddZip().hashCode() );
         result = 37 * result + ( getAddCounty() == null ? 0 : this.getAddCounty().hashCode() );
         return result;
   }   





}
